<?php
namespace Model;
use Framework\Model;

class UserModel extends  Model
{
	public function doAdd($data)
	{
		//var_dump($data);
		$result = $this->add($data);

		return $result;
	}

	public function doFind($data)
	{
		//var_dump($data);
		//$this->where("username= '{$data['username']}'")->select();
		$username = $data['username'];

		$result = $this->where("username='$username'")->select();
		return $result;
	}
}